package com.kongjs.application.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kongjs.application.model.dto.*;
import com.kongjs.application.model.entity.Users;


public interface IUsersService extends IService<Users> {


    boolean save(SaveUserDTO dto);


    boolean remove(Long id);


    boolean update(UpdateUserDTO dto);


    PageDTO<QueryUserDTO> page(PageQueryDTO dto, QueryUserParamDTO paramDTO);

    //@Cached(name = "userInfo:", key = "#userId", cacheType = CacheType.BOTH, syncLocal = true)
    //UserInfoDTO queryUserInfo(Long userId);
}
